package com.qubuyer.business.mine.activity

import android.view.View
import com.qubuyer.R
import com.qubuyer.core.app.DataBindingFragment
import com.qubuyer.databinding.FragmentWithdrawResultBinding

/**
 * @author Susong
 * @date 创建时间:2019/4/13
 * @description 提现activity
 * & @version
 */
class WithdrawResultFragment : DataBindingFragment<FragmentWithdrawResultBinding>() {

    override fun getTitle(): String {
        return "提现成功"
    }


    override fun onBackPressed(): Boolean {
        mContext.popBackTo<MineWalletFragment>()
        return true
    }

    fun onClick(view: View) {
        when (view.id) {
            R.id.tv_confirm_withdraw -> mContext.popBackTo<MineWalletFragment>()
        }
    }

    override fun onDataBinding(dataBinding: FragmentWithdrawResultBinding) {
        dataBinding.host = this
    }

    override val layoutId: Int
        get() = R.layout.fragment_withdraw_result
}